3.18.80 \(\int \frac {(a c+(b c+a d) x+b d x^2)^2}{(a+b x)^8} \, dx\) [1780]

Optimal. Leaf size=65 \[ -\frac {(b c-a d)^2}{5 b^3 (a+b x)^5}-\frac {d (b c-a d)}{2 b^3 (a+b x)^4}-\frac {d^2}{3 b^3 (a+b x)^3} \]

[Out]

-1/5*(-a*d+b*c)^2/b^3/(b*x+a)^5-1/2*d*(-a*d+b*c)/b^3/(b*x+a)^4-1/3*d^2/b^3/(b*x+a)^3

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {640, 45} \begin {gather*} -\frac {d (b c-a d)}{2 b^3 (a+b x)^4}-\frac {(b c-a d)^2}{5 b^3 (a+b x)^5}-\frac {d^2}{3 b^3 (a+b x)^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a*c + (b*c + a*d)*x + b*d*x^2)^2/(a + b*x)^8,x]

[Out]

-1/5*(b*c - a*d)^2/(b^3*(a + b*x)^5) - (d*(b*c - a*d))/(2*b^3*(a + b*x)^4) - d^2/(3*b^3*(a + b*x)^3)

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 640

Int[((d_) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)^(m + p)*(a
/d + (c/e)*x)^p, x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0] &&
 IntegerQ[p]

Rubi steps

\begin {align*} \int \frac {\left (a c+(b c+a d) x+b d x^2\right )^2}{(a+b x)^8} \, dx &=\int \frac {(c+d x)^2}{(a+b x)^6} \, dx\\ &=\int \left (\frac {(b c-a d)^2}{b^2 (a+b x)^6}+\frac {2 d (b c-a d)}{b^2 (a+b x)^5}+\frac {d^2}{b^2 (a+b x)^4}\right ) \, dx\\ &=-\frac {(b c-a d)^2}{5 b^3 (a+b x)^5}-\frac {d (b c-a d)}{2 b^3 (a+b x)^4}-\frac {d^2}{3 b^3 (a+b x)^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 57, normalized size = 0.88 \begin {gather*} -\frac {a^2 d^2+a b d (3 c+5 d x)+b^2 \left (6 c^2+15 c d x+10 d^2 x^2\right )}{30 b^3 (a+b x)^5} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a*c + (b*c + a*d)*x + b*d*x^2)^2/(a + b*x)^8,x]

[Out]

-1/30*(a^2*d^2 + a*b*d*(3*c + 5*d*x) + b^2*(6*c^2 + 15*c*d*x + 10*d^2*x^2))/(b^3*(a + b*x)^5)

________________________________________________________________________________________

Maple [A]
time = 0.65, size = 71, normalized size = 1.09

method result size
gosper \(-\frac {10 d^{2} x^{2} b^{2}+5 a b \,d^{2} x +15 b^{2} c d x +a^{2} d^{2}+3 a b c d +6 b^{2} c^{2}}{30 b^{3} \left (b x +a \right )^{5}}\) \(62\)
risch \(\frac {-\frac {d^{2} x^{2}}{3 b}-\frac {d \left (a d +3 b c \right ) x}{6 b^{2}}-\frac {a^{2} d^{2}+3 a b c d +6 b^{2} c^{2}}{30 b^{3}}}{\left (b x +a \right )^{5}}\) \(63\)
default \(-\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{5 b^{3} \left (b x +a \right )^{5}}-\frac {d^{2}}{3 b^{3} \left (b x +a \right )^{3}}+\frac {d \left (a d -b c \right )}{2 b^{3} \left (b x +a \right )^{4}}\) \(71\)
norman \(\frac {\frac {a^{2} \left (-a^{2} b^{4} d^{2}-3 a c d \,b^{5}-6 c^{2} b^{6}\right )}{30 b^{7}}-\frac {b \,d^{2} x^{4}}{3}+\frac {\left (-5 a \,b^{4} d^{2}-3 c d \,b^{5}\right ) x^{3}}{6 b^{4}}+\frac {\left (-7 a^{2} b^{4} d^{2}-11 a c d \,b^{5}-2 c^{2} b^{6}\right ) x^{2}}{10 b^{5}}+\frac {a \left (-7 a^{2} b^{4} d^{2}-21 a c d \,b^{5}-12 c^{2} b^{6}\right ) x}{30 b^{6}}}{\left (b x +a \right )^{7}}\) \(151\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*c+(a*d+b*c)*x+b*d*x^2)^2/(b*x+a)^8,x,method=_RETURNVERBOSE)

[Out]

-1/5*(a^2*d^2-2*a*b*c*d+b^2*c^2)/b^3/(b*x+a)^5-1/3*d^2/b^3/(b*x+a)^3+1/2*d*(a*d-b*c)/b^3/(b*x+a)^4

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 109, normalized size = 1.68 \begin {gather*} -\frac {10 \, b^{2} d^{2} x^{2} + 6 \, b^{2} c^{2} + 3 \, a b c d + a^{2} d^{2} + 5 \, {\left (3 \, b^{2} c d + a b d^{2}\right )} x}{30 \, {\left (b^{8} x^{5} + 5 \, a b^{7} x^{4} + 10 \, a^{2} b^{6} x^{3} + 10 \, a^{3} b^{5} x^{2} + 5 \, a^{4} b^{4} x + a^{5} b^{3}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*c+(a*d+b*c)*x+b*d*x^2)^2/(b*x+a)^8,x, algorithm="maxima")

[Out]

-1/30*(10*b^2*d^2*x^2 + 6*b^2*c^2 + 3*a*b*c*d + a^2*d^2 + 5*(3*b^2*c*d + a*b*d^2)*x)/(b^8*x^5 + 5*a*b^7*x^4 +
10*a^2*b^6*x^3 + 10*a^3*b^5*x^2 + 5*a^4*b^4*x + a^5*b^3)

________________________________________________________________________________________

Fricas [A]
time = 2.69, size = 109, normalized size = 1.68 \begin {gather*} -\frac {10 \, b^{2} d^{2} x^{2} + 6 \, b^{2} c^{2} + 3 \, a b c d + a^{2} d^{2} + 5 \, {\left (3 \, b^{2} c d + a b d^{2}\right )} x}{30 \, {\left (b^{8} x^{5} + 5 \, a b^{7} x^{4} + 10 \, a^{2} b^{6} x^{3} + 10 \, a^{3} b^{5} x^{2} + 5 \, a^{4} b^{4} x + a^{5} b^{3}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*c+(a*d+b*c)*x+b*d*x^2)^2/(b*x+a)^8,x, algorithm="fricas")

[Out]

-1/30*(10*b^2*d^2*x^2 + 6*b^2*c^2 + 3*a*b*c*d + a^2*d^2 + 5*(3*b^2*c*d + a*b*d^2)*x)/(b^8*x^5 + 5*a*b^7*x^4 +
10*a^2*b^6*x^3 + 10*a^3*b^5*x^2 + 5*a^4*b^4*x + a^5*b^3)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 116 vs. \(2 (56) = 112\).
time = 0.64, size = 116, normalized size = 1.78 \begin {gather*} \frac {- a^{2} d^{2} - 3 a b c d - 6 b^{2} c^{2} - 10 b^{2} d^{2} x^{2} + x \left (- 5 a b d^{2} - 15 b^{2} c d\right )}{30 a^{5} b^{3} + 150 a^{4} b^{4} x + 300 a^{3} b^{5} x^{2} + 300 a^{2} b^{6} x^{3} + 150 a b^{7} x^{4} + 30 b^{8} x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*c+(a*d+b*c)*x+b*d*x**2)**2/(b*x+a)**8,x)

[Out]

(-a**2*d**2 - 3*a*b*c*d - 6*b**2*c**2 - 10*b**2*d**2*x**2 + x*(-5*a*b*d**2 - 15*b**2*c*d))/(30*a**5*b**3 + 150
*a**4*b**4*x + 300*a**3*b**5*x**2 + 300*a**2*b**6*x**3 + 150*a*b**7*x**4 + 30*b**8*x**5)

________________________________________________________________________________________

Giac [A]
time = 1.41, size = 61, normalized size = 0.94 \begin {gather*} -\frac {10 \, b^{2} d^{2} x^{2} + 15 \, b^{2} c d x + 5 \, a b d^{2} x + 6 \, b^{2} c^{2} + 3 \, a b c d + a^{2} d^{2}}{30 \, {\left (b x + a\right )}^{5} b^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*c+(a*d+b*c)*x+b*d*x^2)^2/(b*x+a)^8,x, algorithm="giac")

[Out]

-1/30*(10*b^2*d^2*x^2 + 15*b^2*c*d*x + 5*a*b*d^2*x + 6*b^2*c^2 + 3*a*b*c*d + a^2*d^2)/((b*x + a)^5*b^3)

________________________________________________________________________________________

Mupad [B]
time = 0.59, size = 107, normalized size = 1.65 \begin {gather*} -\frac {\frac {a^2\,d^2+3\,a\,b\,c\,d+6\,b^2\,c^2}{30\,b^3}+\frac {d^2\,x^2}{3\,b}+\frac {d\,x\,\left (a\,d+3\,b\,c\right )}{6\,b^2}}{a^5+5\,a^4\,b\,x+10\,a^3\,b^2\,x^2+10\,a^2\,b^3\,x^3+5\,a\,b^4\,x^4+b^5\,x^5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*c + x*(a*d + b*c) + b*d*x^2)^2/(a + b*x)^8,x)

[Out]

-((a^2*d^2 + 6*b^2*c^2 + 3*a*b*c*d)/(30*b^3) + (d^2*x^2)/(3*b) + (d*x*(a*d + 3*b*c))/(6*b^2))/(a^5 + b^5*x^5 +
 5*a*b^4*x^4 + 10*a^3*b^2*x^2 + 10*a^2*b^3*x^3 + 5*a^4*b*x)

________________________________________________________________________________________